package com.jxdinfo.hussar.example.messagereminder.wsdmessagereminder.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jxdinfo.hussar.support.mp.base.mapper.HussarMapper;
import com.jxdinfo.hussar.support.mp.base.query.dto.SuperQueryConditionDto;
import org.springframework.stereotype.Repository;
import com.jxdinfo.hussar.example.messagereminder.wsdmessagereminder.model.WsdMessageReminder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.jxdinfo.hussar.example.messagereminder.wsdmessagereminder.dto.WsdMessageReminderSelectCondition;

/**
 * 消息提醒数据模型Mapper接口
 */
@Mapper
@Repository("messagereminder.wsdmessagereminder.WsdMessageReminderMapper")
public interface WsdMessageReminderMapper extends HussarMapper<WsdMessageReminder> {

    /**
     * 逻辑删除消息提醒数据模型
     */
    Boolean flagDelete(@Param("ids") List<String> ids);

    /**
     * 修改消息已读状态
     * @param ids
     * @return
     */
    Boolean updateStatus(@Param("ids") List<String> ids);

    /**
     * 根据当前登陆人或当前登陆人的角色查询消息提醒数据
     */
    List<WsdMessageReminder> queryListByUserIdOrRoleId(@Param("page") Page<WsdMessageReminder> page, @Param("userId") String userId, @Param("roleIds") List<String> roleIds,@Param("orderColumn") String orderColumn,@Param("order") String order,@Param("conditions") List<SuperQueryConditionDto> condition);
}
